	.file	1 "main.c"
	.section .mdebug.abi32
	.previous
	.abicalls
	.rdata
	.align	2
$LC0:
	.ascii	"r\000"
	.align	2
$LC1:
	.ascii	"No se pudo abrir el archivo %s\n\000"
	.align	2
$LC2:
	.ascii	"w\000"
	.text
	.align	2
	.globl	main
	.ent	main
main:
	.frame	$fp,168,$ra		# vars= 128, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,168
	.cprestore 16
	sw	$ra,160($sp)
	sw	$fp,156($sp)
	sw	$gp,152($sp)
	move	$fp,$sp
	sw	$a0,168($fp)
	sw	$a1,172($fp)
	sw	$zero,24($fp)
	addu	$v0,$fp,32
	move	$a0,$v0
	la	$t9,setDefaults
	jal	$ra,$t9
	addu	$v0,$fp,32
	lw	$a0,168($fp)
	lw	$a1,172($fp)
	move	$a2,$v0
	la	$t9,parseCommandLine
	jal	$ra,$t9
	sw	$v0,24($fp)
	la	$v0,__sF
	sw	$v0,144($fp)
	la	$v0,__sF+88
	sw	$v0,148($fp)
	addu	$v0,$fp,32
	addu	$v0,$v0,1
	move	$a0,$v0
	la	$t9,strlen
	jal	$ra,$t9
	sltu	$v0,$v0,2
	bne	$v0,$zero,$L18
	addu	$v0,$fp,32
	addu	$v0,$v0,1
	move	$a0,$v0
	la	$a1,$LC0
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,144($fp)
	lw	$v0,144($fp)
	xori	$v0,$v0,0x0
	sltu	$v0,$v0,1
	sw	$v0,24($fp)
	beq	$v0,$zero,$L18
	addu	$v0,$fp,32
	addu	$v0,$v0,1
	la	$a0,__sF+176
	la	$a1,$LC1
	move	$a2,$v0
	la	$t9,fprintf
	jal	$ra,$t9
$L18:
	addu	$v0,$fp,32
	addu	$v0,$v0,31
	move	$a0,$v0
	la	$t9,strlen
	jal	$ra,$t9
	sltu	$v0,$v0,2
	bne	$v0,$zero,$L20
	addu	$v0,$fp,32
	addu	$v0,$v0,31
	move	$a0,$v0
	la	$a1,$LC2
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,148($fp)
	lw	$v0,148($fp)
	xori	$v0,$v0,0x0
	sltu	$v0,$v0,1
	sw	$v0,24($fp)
	beq	$v0,$zero,$L20
	addu	$v0,$fp,32
	addu	$v0,$v0,31
	la	$a0,__sF+176
	la	$a1,$LC1
	move	$a2,$v0
	la	$t9,fprintf
	jal	$ra,$t9
$L20:
	lw	$v0,96($fp)
	sw	$v0,136($fp)
	addu	$v0,$fp,32
	addu	$v0,$v0,68
	sw	$v0,140($fp)
	lw	$v0,24($fp)
	bne	$v0,$zero,$L22
	lb	$v1,32($fp)
	li	$v0,111			# 0x6f
	bne	$v1,$v0,$L23
	lw	$v0,144($fp)
	lh	$a0,14($v0)
	lw	$v0,148($fp)
	lh	$v0,14($v0)
	addu	$v1,$fp,136
	move	$a1,$v0
	move	$a2,$v1
	la	$t9,odump_encode
	jal	$ra,$t9
	sw	$v0,24($fp)
	b	$L22
$L23:
	lw	$v0,144($fp)
	lh	$a0,14($v0)
	lw	$v0,148($fp)
	lh	$v0,14($v0)
	addu	$v1,$fp,136
	move	$a1,$v0
	move	$a2,$v1
	la	$t9,odump_decode
	jal	$ra,$t9
	sw	$v0,24($fp)
$L22:
	lw	$v0,144($fp)
	beq	$v0,$zero,$L25
	lw	$a0,144($fp)
	la	$t9,fclose
	jal	$ra,$t9
$L25:
	lw	$v0,148($fp)
	beq	$v0,$zero,$L26
	lw	$a0,148($fp)
	la	$t9,fclose
	jal	$ra,$t9
$L26:
	lw	$v0,24($fp)
	move	$sp,$fp
	lw	$ra,160($sp)
	lw	$fp,156($sp)
	addu	$sp,$sp,168
	j	$ra
	.end	main
	.size	main, .-main
	.rdata
	.align	2
$LC3:
	.ascii	"usage: tp0 -h, --help      \tPrint this information.\n\000"
	.align	2
$LC4:
	.ascii	"       tp0 -V, --version   Print version and quit.\n\000"
	.align	2
$LC5:
	.ascii	"       tp0 -0, --octal  \tOctal dump mode: encode the in"
	.ascii	"put (binary file) in octal\n\000"
	.align	2
$LC6:
	.ascii	"       \t \t\t\t\t\tformat (default).\n\000"
	.align	2
$LC7:
	.ascii	"       tp0 -b, --binary \tBinary mode: decode the input "
	.ascii	"(octal dump file) in binary\n\000"
	.align	2
$LC8:
	.ascii	"       \t\t\t\t\t\tformat.\n\000"
	.align	2
$LC9:
	.ascii	"       tp0 -i, --input \t\tPath to input file (defaults "
	.ascii	"to stdin)\n\000"
	.align	2
$LC10:
	.ascii	"       tp0 -o, --output \tPath to output file (defaults "
	.ascii	"to stdout).\n\000"
	.align	2
$LC11:
	.ascii	"       tp0 -l, --length\t\tNumber of octal bytes per lin"
	.ascii	"e (line length) at the\n\000"
	.align	2
$LC12:
	.ascii	"       \t\t \t\t\t\toutput in octal dump mode (0 = defau"
	.ascii	"lt = no limit).\n\000"
	.align	2
$LC13:
	.ascii	"       tp0 -d, --delimiter\tDelimiter between octal byte"
	.ascii	"s. Could be a string, not only\n\000"
	.align	2
$LC14:
	.ascii	"      \t\t\t\t\t\ta single byte. Used as delimiter for o"
	.ascii	"ctal output and input\n\000"
	.align	2
$LC15:
	.ascii	"       \t\t\t\t\t\tfiles (default: none).\n\000"
	.text
	.align	2
	.ent	usage
usage:
	.frame	$fp,40,$ra		# vars= 0, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,40
	.cprestore 16
	sw	$ra,32($sp)
	sw	$fp,28($sp)
	sw	$gp,24($sp)
	move	$fp,$sp
	la	$a0,$LC3
	la	$t9,printf
	jal	$ra,$t9
	la	$a0,$LC4
	la	$t9,printf
	jal	$ra,$t9
	la	$a0,$LC5
	la	$t9,printf
	jal	$ra,$t9
	la	$a0,$LC6
	la	$t9,printf
	jal	$ra,$t9
	la	$a0,$LC7
	la	$t9,printf
	jal	$ra,$t9
	la	$a0,$LC8
	la	$t9,printf
	jal	$ra,$t9
	la	$a0,$LC9
	la	$t9,printf
	jal	$ra,$t9
	la	$a0,$LC10
	la	$t9,printf
	jal	$ra,$t9
	la	$a0,$LC11
	la	$t9,printf
	jal	$ra,$t9
	la	$a0,$LC12
	la	$t9,printf
	jal	$ra,$t9
	la	$a0,$LC13
	la	$t9,printf
	jal	$ra,$t9
	la	$a0,$LC14
	la	$t9,printf
	jal	$ra,$t9
	la	$a0,$LC15
	la	$t9,printf
	jal	$ra,$t9
	move	$sp,$fp
	lw	$ra,32($sp)
	lw	$fp,28($sp)
	addu	$sp,$sp,40
	j	$ra
	.end	usage
	.size	usage, .-usage
	.rdata
	.align	2
$LC16:
	.ascii	"La version es 1.1\n\000"
	.text
	.align	2
	.ent	version
version:
	.frame	$fp,40,$ra		# vars= 0, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,40
	.cprestore 16
	sw	$ra,32($sp)
	sw	$fp,28($sp)
	sw	$gp,24($sp)
	move	$fp,$sp
	la	$a0,$LC16
	la	$t9,printf
	jal	$ra,$t9
	move	$sp,$fp
	lw	$ra,32($sp)
	lw	$fp,28($sp)
	addu	$sp,$sp,40
	j	$ra
	.end	version
	.size	version, .-version
	.align	2
	.ent	setDefaults
setDefaults:
	.frame	$fp,16,$ra		# vars= 0, regs= 2/0, args= 0, extra= 8
	.mask	0x50000000,-4
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,16
	.cprestore 0
	sw	$fp,12($sp)
	sw	$gp,8($sp)
	move	$fp,$sp
	sw	$a0,16($fp)
	lw	$v1,16($fp)
	li	$v0,111			# 0x6f
	sb	$v0,0($v1)
	lw	$v0,16($fp)
	sb	$zero,1($v0)
	lw	$v0,16($fp)
	sb	$zero,31($v0)
	lw	$v0,16($fp)
	sw	$zero,64($v0)
	lw	$v0,16($fp)
	sb	$zero,68($v0)
	move	$sp,$fp
	lw	$fp,12($sp)
	addu	$sp,$sp,16
	j	$ra
	.end	setDefaults
	.size	setDefaults, .-setDefaults
	.rdata
	.align	2
$LC17:
	.ascii	"La long. del parametro <%s> supera los %d caracteres\n\000"
	.text
	.align	2
	.ent	tryCopyString
tryCopyString:
	.frame	$fp,48,$ra		# vars= 8, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,48
	.cprestore 16
	sw	$ra,40($sp)
	sw	$fp,36($sp)
	sw	$gp,32($sp)
	move	$fp,$sp
	sw	$a0,48($fp)
	sw	$a1,52($fp)
	sw	$a2,56($fp)
	lw	$a0,48($fp)
	la	$t9,strlen
	jal	$ra,$t9
	sltu	$v0,$v0,30
	beq	$v0,$zero,$L31
	lw	$a0,52($fp)
	lw	$a1,48($fp)
	la	$t9,strcpy
	jal	$ra,$t9
	sw	$zero,24($fp)
	b	$L30
$L31:
	la	$a0,__sF+176
	la	$a1,$LC17
	lw	$a2,56($fp)
	li	$a3,30			# 0x1e
	la	$t9,fprintf
	jal	$ra,$t9
	li	$v0,1			# 0x1
	sw	$v0,24($fp)
$L30:
	lw	$v0,24($fp)
	move	$sp,$fp
	lw	$ra,40($sp)
	lw	$fp,36($sp)
	addu	$sp,$sp,48
	j	$ra
	.end	tryCopyString
	.size	tryCopyString, .-tryCopyString
	.rdata
	.align	2
$LC19:
	.ascii	"help\000"
	.align	2
$LC20:
	.ascii	"version\000"
	.align	2
$LC21:
	.ascii	"octal\000"
	.align	2
$LC22:
	.ascii	"binary\000"
	.align	2
$LC23:
	.ascii	"input\000"
	.align	2
$LC24:
	.ascii	"output\000"
	.align	2
$LC25:
	.ascii	"length\000"
	.align	2
$LC26:
	.ascii	"delimiter\000"
	.data
	.align	2
$LC27:
	.word	$LC19
	.word	0
	.word	0
	.word	104
	.word	$LC20
	.word	0
	.word	0
	.word	86
	.word	$LC21
	.word	0
	.word	0
	.word	79
	.word	$LC22
	.word	0
	.word	0
	.word	98
	.word	$LC23
	.word	0
	.word	0
	.word	105
	.word	$LC24
	.word	0
	.word	0
	.word	111
	.word	$LC25
	.word	0
	.word	0
	.word	108
	.word	$LC26
	.word	0
	.word	0
	.word	100
	.word	0
	.word	0
	.word	0
	.word	0
	.globl	memcpy
	.rdata
	.align	2
$LC18:
	.ascii	"hVObiold\000"
	.align	2
$LC28:
	.ascii	"input file\000"
	.align	2
$LC29:
	.ascii	"output file\000"
	.align	2
$LC30:
	.ascii	"0\000"
	.align	2
$LC31:
	.ascii	"La longitud de linea propuesta es invalida\n\000"
	.align	2
$LC32:
	.ascii	"Parametro no valido: %c\n\000"
	.text
	.align	2
	.ent	parseCommandLine
parseCommandLine:
	.frame	$fp,216,$ra		# vars= 168, regs= 4/0, args= 24, extra= 8
	.mask	0xd0010000,-4
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,216
	.cprestore 24
	sw	$ra,212($sp)
	sw	$fp,208($sp)
	sw	$gp,204($sp)
	sw	$s0,200($sp)
	move	$fp,$sp
	sw	$a0,216($fp)
	sw	$a1,220($fp)
	sw	$a2,224($fp)
	la	$v0,$LC18
	sw	$v0,32($fp)
	addu	$v0,$fp,40
	la	$v1,$LC27
	move	$a0,$v0
	move	$a1,$v1
	li	$a2,144			# 0x90
	la	$t9,memcpy
	jal	$ra,$t9
	sw	$zero,188($fp)
$L34:
	lw	$v0,188($fp)
	bne	$v0,$zero,$L35
	addu	$v0,$fp,40
	sw	$zero,16($sp)
	lw	$a0,216($fp)
	lw	$a1,220($fp)
	lw	$a2,32($fp)
	move	$a3,$v0
	la	$t9,getopt_long
	jal	$ra,$t9
	sw	$v0,184($fp)
	lw	$v1,184($fp)
	li	$v0,-1			# 0xffffffffffffffff
	bne	$v1,$v0,$L36
	b	$L35
$L36:
	lb	$v0,184($fp)
	addu	$v0,$v0,-79
	sw	$v0,192($fp)
	lw	$v1,192($fp)
	sltu	$v0,$v1,33
	beq	$v0,$zero,$L48
	lw	$v0,192($fp)
	sll	$v1,$v0,2
	la	$v0,$L49
	addu	$v0,$v1,$v0
	lw	$v0,0($v0)
	.cpadd	$v0
	j	$v0
	.rdata
	.align	2
$L49:
	.gpword	$L41
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L40
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L42
	.gpword	$L48
	.gpword	$L47
	.gpword	$L48
	.gpword	$L48
	.gpword	$L48
	.gpword	$L39
	.gpword	$L43
	.gpword	$L48
	.gpword	$L48
	.gpword	$L45
	.gpword	$L48
	.gpword	$L48
	.gpword	$L44
	.text
$L39:
	la	$t9,usage
	jal	$ra,$t9
	li	$v0,2			# 0x2
	sw	$v0,188($fp)
	b	$L34
$L40:
	la	$t9,version
	jal	$ra,$t9
	li	$v0,2			# 0x2
	sw	$v0,188($fp)
	b	$L34
$L41:
	lw	$v1,224($fp)
	li	$v0,111			# 0x6f
	sb	$v0,0($v1)
	b	$L34
$L42:
	lw	$v1,224($fp)
	li	$v0,98			# 0x62
	sb	$v0,0($v1)
	b	$L34
$L43:
	lw	$v0,optind
	sll	$v1,$v0,2
	lw	$v0,220($fp)
	addu	$v1,$v1,$v0
	lw	$v0,224($fp)
	addu	$v0,$v0,1
	lw	$a0,0($v1)
	move	$a1,$v0
	la	$a2,$LC28
	la	$t9,tryCopyString
	jal	$ra,$t9
	sw	$v0,188($fp)
	b	$L34
$L44:
	lw	$v0,optind
	sll	$v1,$v0,2
	lw	$v0,220($fp)
	addu	$v1,$v1,$v0
	lw	$v0,224($fp)
	addu	$v0,$v0,31
	lw	$a0,0($v1)
	move	$a1,$v0
	la	$a2,$LC29
	la	$t9,tryCopyString
	jal	$ra,$t9
	sw	$v0,188($fp)
	b	$L34
$L45:
	lw	$s0,224($fp)
	lw	$v0,optind
	sll	$v1,$v0,2
	lw	$v0,220($fp)
	addu	$v0,$v1,$v0
	lw	$a0,0($v0)
	la	$t9,atoi
	jal	$ra,$t9
	sw	$v0,64($s0)
	lw	$v0,224($fp)
	lw	$v0,64($v0)
	bne	$v0,$zero,$L34
	lw	$v0,optind
	sll	$v1,$v0,2
	lw	$v0,220($fp)
	addu	$v0,$v1,$v0
	lw	$a0,0($v0)
	la	$a1,$LC30
	la	$t9,strcmp
	jal	$ra,$t9
	beq	$v0,$zero,$L34
	la	$a0,__sF+176
	la	$a1,$LC31
	la	$t9,fprintf
	jal	$ra,$t9
	li	$v0,1			# 0x1
	sw	$v0,188($fp)
	b	$L34
$L47:
	lw	$v0,optind
	sll	$v1,$v0,2
	lw	$v0,220($fp)
	addu	$v1,$v1,$v0
	lw	$v0,224($fp)
	addu	$v0,$v0,68
	lw	$a0,0($v1)
	move	$a1,$v0
	la	$a2,$LC26
	la	$t9,tryCopyString
	jal	$ra,$t9
	sw	$v0,188($fp)
	b	$L34
$L48:
	la	$a0,__sF+176
	la	$a1,$LC32
	lw	$a2,184($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	li	$v0,1			# 0x1
	sw	$v0,188($fp)
	b	$L34
$L35:
	lw	$v0,188($fp)
	move	$sp,$fp
	lw	$ra,212($sp)
	lw	$fp,208($sp)
	lw	$s0,200($sp)
	addu	$sp,$sp,216
	j	$ra
	.end	parseCommandLine
	.size	parseCommandLine, .-parseCommandLine
	.ident	"GCC: (GNU) 3.3.3 (NetBSD nb3 20040520)"
